package COM.Student;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class UserTest {
    ApplicationContext context =
            new ClassPathXmlApplicationContext("Student.xml");
    @Test
    public void test() {
        User user = (User) context.getBean("user");
        System.out.println(user);
    }
}
